﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.MachineStatusRecordVMs
{
    public partial class MachineStatusRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._MachineStatusRecord._factoryCode")]
        public ExcelPropety FactoryCode_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.FactoryCode);
        [Display(Name = "_Model._MachineStatusRecord._lineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.LineCode);
        [Display(Name = "_Model._MachineStatusRecord._stationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.StationCode);
        [Display(Name = "_Model._MachineStatusRecord._machineStatusCode")]
        public ExcelPropety MachineStatusCode_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.MachineStatusCode);
        [Display(Name = "_Model._MachineStatusRecord._acquistCode")]
        public ExcelPropety AcquistCode_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.AcquistCode);
        [Display(Name = "_Model._MachineStatusRecord._machineStatusBegin")]
        public ExcelPropety MachineStatusBegin_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.MachineStatusBegin);
        [Display(Name = "_Model._MachineStatusRecord._machineStatusEnd")]
        public ExcelPropety MachineStatusEnd_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.MachineStatusEnd);
        [Display(Name = "_Model._MachineStatusRecord._editTime")]
        public ExcelPropety EditTime_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.EditTime);
        [Display(Name = "_Model._MachineStatusRecord._StatusType")]
        public ExcelPropety StatusType_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.StatusType);
        [Display(Name = "_Model._MachineStatusRecord._uploadflag")]
        public ExcelPropety Uploadflag_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.Uploadflag);
        [Display(Name = "_Model._MachineStatusRecord._machineCode")]
        public ExcelPropety MachineCode_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.MachineCode);
        [Display(Name = "_Model._MachineStatusRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._MachineStatusRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._MachineStatusRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.CreateBy);
        [Display(Name = "_Model._MachineStatusRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<MachineStatusRecord>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            
        }

    }

    public class MachineStatusRecordImportVM : BaseImportVM<MachineStatusRecordTemplateVM, MachineStatusRecord>
    {
            //import

    }

}